package com.example.job_backend.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.job_backend.mapper.PositionMapper;
import com.example.job_backend.mapper.PushPositionMapper;
import com.example.job_backend.model.Position;
import com.example.job_backend.model.PushPosition;
import com.example.job_backend.service.PushPositionService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PushPositionImpl extends ServiceImpl<PushPositionMapper, PushPosition> implements PushPositionService {
    @Resource
    private PositionMapper positionMapper;

    @Override
    public List<Position> getPositionByUsername(String username) {
        return positionMapper.findPosition(username);
    }
}
